package com.yzh.oop3;

/**
 * @author 于振晗
 * @title: Test
 * @description: TODO test
 * @date 2020年08月28日
 * @path com.yzh.oop3
 */
public class Test {
    public static void main(String[] args) {
        Book book1 = new Book("倚天屠龙记","金庸","清华大学出版社",35);
        Book book2 = new Book("倚天屠龙记","金庸","清华大学出版社",31);
        int result = book1.compareTo(book2);
        System.out.println(result);
        Person person1 = new Person("张三",24);
        Person person2 = new Person("李四",24);
        result = person1.compareTo(person2);
        System.out.println(result);
    }
}
